package com.link2room.ironhide.controller.task;

import com.link2room.common.dto.result.base.BaseResultDto;
import com.link2room.base.facade.IMappingServiceCacheFacadeService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by LN on 2016/10/20.
 */
@RestController
@RequestMapping("/task/mappingServiceCaches")
public class MappingServiceTaskController {
    @Resource
    private IMappingServiceCacheFacadeService mappingServiceCacheFacadeService;

    /**
     * 更新serviceRedis缓存
     * @return
     * @throws Exception
     */
    @RequestMapping(method = RequestMethod.GET)
    public
    BaseResultDto refreshCache1() throws Exception {
        return mappingServiceCacheFacadeService.refeshMappingServiceCache();
    }
}
